package com.capgemini.scaffold.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.capgemini.scaffold.model.User;
import com.capgemini.scaffold.model.request.UserReq;
import com.capgemini.scaffold.model.request.UserUpdateReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> queryUser(@Param("req") UserReq req);

    IPage<User> queryUser(Page<User> page, @Param("req") UserReq req);

    Integer updateUser(@Param("req") UserUpdateReq req);

}
